package week06.strategy;

public class CartService {
    private MemberStrategy strategy;

    public void calcPrice(double price) {
        strategy = new IntermediateMember();
        double realPrice = strategy.calcPrice(price);
        System.out.println("Real Price: " + realPrice);
    }

    public static void main(String[] args) {
        CartService cartService = new CartService();
        cartService.calcPrice(80);
    }
}
